<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<% String path=request.getContextPath(); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Edit Employee</title>
<link href="<s:url value="/style.css"/>" rel="stylesheet" type="text/css"/>
</head>
<body>
	<jsp:include page="/navigation/navigation.jsp"/>

	<div id="mainBox">
		<center>
			<s:if test='empType=="DOCTOR"'>
				<h3>View Doctor Info</h3>
			</s:if>
			<s:if test='empType=="STAFF"'>
				<h3>View Staff Info</h3>
			</s:if>
			<s:if test='empType=="LEGAL"'>
				<h3>View Legal Info</h3>
			</s:if>
			<s:if test='empType=="FINANCE"'>
				<h3>View Finance Info</h3>
			</s:if>
		</center>
		
		<center>
			<table width="300px">
				<tr>
					<td><img id = "userImage" src = "<s:url value="/resources/user.png" />" width=100px height=120px alt="404 Not Found"></td>
				</tr>
				<tr>
					<td>Id:</td>
					<td><s:property value="retrievedEmployee.id"/></td>
				</tr>
				<tr>
					<td>Username:</td>
					<td><s:property value="retrievedEmployee.username"/></td>
				</tr>
				<tr>
					<td>Name:</td>
					<td><s:property value="retrievedEmployee.name"/></td>
				</tr>
				<tr>
					<td>Department:</td>
					<td><s:property value="retrievedEmployee.department"/></td>
				</tr>
				<tr>
					<td>Title:</td>
					<td><s:property value="retrievedEmployee.title"/></td>
				</tr>
				
				<s:if test='empType=="STAFF"'>
					<tr>
						<td valign="top">Work for Doctors:</td>
						<td>
							<table id="workForTable">
								<s:iterator value="selectedWorkForDoctors" >
									<tr><td><s:property/></td></tr>
								</s:iterator>
							</table>
						</td>
					</tr>
				</s:if>
				
			</table>
			<div id="actionResult"><s:property value="#session.actionResult"/></div>
		</center>
		
	</div>
</body>
</html>